package router

import (
	"github.com/gin-gonic/gin"
	"hosptial-record/api/picture"
	"hosptial-record/middlewares"
)

func InitPictureRouter(group *gin.RouterGroup) {
	router := group.Group("picture")
	{
		router.POST("print", picture.PrintPicture)
		router.Use(middlewares.JWTAuth()).GET("", picture.List)
		router.Use(middlewares.JWTAuth()).POST("", picture.Create)
		router.Use(middlewares.JWTAuth()).PATCH("", picture.Update)
		router.Use(middlewares.JWTAuth()).DELETE(":id", picture.Delete)
	}
}
